package com.lancoo.znbkxx.teacher.ui.fragment;

import android.view.View;
import android.widget.ImageView;

import com.lancoo.znbkxx.teacher.R;
import com.lancoo.znbkxx.teacher.base.BaseFragment;
import com.lancoo.znbkxx.teacher.widget.BamButton;


public class GuideFragment3 extends BaseFragment {

    @Override
    protected int createLayout() {
        return R.layout.guid_view1;
    }

    private boolean isFirstIn3 = true;
    private ImageView guide;
    private BamButton mSBtnLogin;
    private CallBackLogin callBackLogin;

    @Override
    protected void initView(View view) {
        guide = view.findViewById(R.id.iv_guide);
        mSBtnLogin = view.findViewById(R.id.sbtn_login);
        mSBtnLogin.setVisibility(View.VISIBLE);
        guide.setBackground(view.getResources().getDrawable(R.mipmap.bg_guide3));
        mSBtnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                callBackLogin.ClickLogin();
            }
        });
    }

    public GuideFragment3(CallBackLogin callBackLogin) {
        this.callBackLogin = callBackLogin;
    }


    @Override
    public void setUserVisibleHint(final boolean isVisibleToUser) {

        if (isVisibleToUser) {
            if (!isFirstIn3) {

            }
        } else {

        }
    }

    public interface CallBackLogin {
        void ClickLogin();
    }

}